import { defineStore } from "pinia";
export const baseStore = defineStore({
    id: 'user',
    state: () => {
        return {
            num:1
        }
    },
    persist: {
        storage:{
            getItem:(e)=>{
               return  uni.getStorageSync(e)
            },
            setItem(k,v){
                uni.setStorageSync(k,v);
            }
        },
        // path https://prazdevs.github.io/pinia-plugin-persistedstate/zh/guide/config.html#paths
    },
})